package org.xidian.note.controller.notebook;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.xidian.note.entity.NoteResult;
import org.xidian.note.service.NoteBookService;
@Controller
@RequestMapping("/notebook")
public class NoteBookController {
   @Resource
   private NoteBookService noteBookService;
   @ResponseBody
   @RequestMapping("/loadbooks.do")
   public NoteResult execute(String userId){
	   NoteResult result = noteBookService.loadBooks(userId);
	   return result;
   }
}
